from django.db import models

# Create your models here.
class Cla(models.Model):
    cname = models.CharField(max_length=30)

class Stu(models.Model):
    sname = models.CharField(max_length=30)
    age = models.IntegerField()
    sex = models.BooleanField()
    cla = models.ForeignKey(Cla,on_delete=models.CASCADE)

